package com.sn.author.service.impl;

import com.sn.author.dao.ImportAccountMapper;
import com.sn.author.domain.entity.ImportAccount;
import com.sn.author.service.dao.DyUserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @Author xiaom
 * @Date 2020/9/22 18:55
 * @Version 1.0.0
 * @Description <>
 **/
@Service
public class DyUserServiceImpl implements DyUserService {

    @Resource
    private ImportAccountMapper importAccountMapper;

    @Override
    public String getAccountDeviceId(String userName) {
        ImportAccount account = getDyUserInfo(userName);
        return null;
    }

    @Override
    public String getAccountCookie(String userName) {
        ImportAccount account = getDyUserInfo(userName);
        return null;
    }

    @Override
    public ImportAccount getDyUserInfo(String userName) {
        return importAccountMapper.selectByPhone(userName);
    }
}
